# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Corentin Peuvrel <corentin.peuvrel@gmail.com>

pkgname=usleep
pkgver=1.0
pkgrel=6
pkgdesc='Sleep for (at least) the given number of microseconds'
arch=(loong64 x86_64)
url='https://github.com/cpeuvrel/usleep-aur'
license=(MIT)
makedepends=(git)
source=("usleep::git+$url#commit=4f880a7") # 2016-03-11
b2sums=('SKIP')

build() {
  make -C $pkgname
}

package() {
  make -C $pkgname PREFIX="$pkgdir/usr/bin" install
  install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# getver: -u 2 raw.githubusercontent.com/cpeuvrel/usleep-aur/master/.SRCINFO
